{% if v.saved %}
<script type="text/javascript">
alert("Settings saved.");
</script>
{% endif %}
Calendar was {% if v.calendar.manual %} manually {% else %} automatically {% endif %} generated at {{ v.calendar.timestamp }}.
<br/>
<a href="/tasks/calgen?manual=1">Regenerate Calendar</a>
<form action="settingsEdit" method="post">
<table>
    <tr>
	<th>Company Name</th><td><input type="text" name="companyName" value="{{ v.settings.companyName }}"/></td>
    </tr>
    <tr>
	<th>Company Address</th>
	<td>
	    <textarea name="companyAddress" rows="4" cols="50">{{ v.settings.companyAddress }}</textarea>
	</td>
    </tr>
    <tr>
	<th>Phone #1</th><td><input type="text" name="companyPhone1" value="{{ v.settings.companyPhone1 }}"/></td>
    </tr>
    <tr>
	<th>Phone #2</th><td><input type="text" name="companyPhone2" value="{{ v.settings.companyPhone2 }}"/></td>
    </tr>
    <tr>
	<th>Company Email</th><td><input type="email" name="email" value="{{ v.settings.email }}"/></td>
    </tr>
    <tr>
	<th>Bank Name</th><td><input type="text" name="bankName" value="{{ v.settings.bankName }}"/></td>
    </tr>
    <tr>
	<th>Bank Address</th>
	<td>
	    <textarea name="bankAddress" rows="4" cols="50">{{ v.settings.bankAddress }}</textarea>
	</td>
    </tr>
	
    <tr>
	<th>Acct. Name</th><td><input type="text" name="bankAcctName" value="{{ v.settings.bankAcctName }}"/></td>
    </tr>
    <tr>
	<th>Acct. #</th><td><input type="text" name="bankAcctNum" value="{{ v.settings.bankAcctNum }}"/></td>
    </tr>
    <tr>
	<th>Routing #</th><td><input type="text" name="routing_number" value="{{ v.settings.routingNumber }}"/></td>
    </tr>
    <tr>
	<th>Swift Code</th><td><input type="text" name="swift_code" value="{{ v.settings.swiftCode }}"/></td>
    </tr>

    <tr>
      <th>SDIN#</th><td><input type="text" name="sdin" value="{{ v.settings.sdin }}"/></td>
    </tr>
    <tr>
      <th>Sales Tax</th><td><input type="text" name="sales_tax" value="{{ v.settings.sales_tax }}"/></td>
    </tr>
    <tr>
	<th># Months</th>
	<td>
	    <input type="text" name="num_months" value="{{ v.settings.num_months }}"/>
	</td>
    </tr>
<table>
<input type="submit" value="Save Changes"/>
</form>

	
